package com.yl.service.impl;

import com.yl.domain.SwRecordDO;
import com.yl.mapper.SwRecordMapper;
import com.yl.service.SwRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

@Service
public class SwRecordServiceImpl implements SwRecordService {

    @Resource
    SwRecordMapper swRecordMapper;

    /**
     * 开启录制保存一下
     *
     * @param swRecordDO
     * @author : y
     * @date :  2024/7/18 16:39
     */
    @Override
    public Boolean save(String  cname,String uid,String resourceid,String sid) {
        SwRecordDO swRecordDO = new SwRecordDO();
        swRecordDO.setCreateTime(new Date());
        swRecordDO.setCname(cname);
        swRecordDO.setSid(sid);
        swRecordDO.setUid(uid);
        swRecordDO.setResourceid(resourceid);
        swRecordDO.setUnEnd("0");
        swRecordMapper.insert(swRecordDO);
        return true;
    }
}
